from django.urls import path, re_path
from django.conf.urls import url

from apps.organiztion.views import OrgView, AddAskView, OrgHomeView, OrgTeacherView, OrgCourseView, OrgDescView

urlpatterns = [
    re_path(r'^list/$', OrgView.as_view(), name='list'),  # 动态登录验证图片验证码
    path('add_ask/',  AddAskView.as_view(), name='add_ask'),
    path('<int:org_id>/',  OrgHomeView.as_view(), name='home'),  # 机构首页
    path('<int:org_id>/teacher/',  OrgTeacherView.as_view(), name='teacher'),  # 机构讲师
    path('<int:org_id>/course/',  OrgCourseView.as_view(), name='course'),  # 机构课程
    path('<int:org_id>/desc/',  OrgDescView.as_view(), name='desc'),  # 机构描述
    # url(r'(?p<org_id>\d+)/teacher/$', OrgHomeView.as_view(), name='teacher')
]
